package com.fuershiye.woman.monitor.service;

import com.fuershiye.woman.monitor.beans.DepartmentAndType;
import com.fuershiye.woman.monitor.beans.ViewUserTel;
import com.fuershiye.woman.monitor.model.Area;
import com.fuershiye.woman.monitor.model.Department;
import com.fuershiye.woman.monitor.model.User;

import java.util.List;


/**
 * @author yongyongdong
 *
 */
public interface UserService {

    /**
     * 
     * 每个用户可能属于多个角色(目前只支持,一个角色)
     * 
     * @param name
     * @return Depart Id
     */
    Department getDepartIdByName(String name);

    List<ViewUserTel> getSameAreaUserByNowUserRoleDepartment();

    DepartmentAndType getDepartTypeByName();

    User getDByName(String name);

    Area getAreaByName();
    
}
